/* ═══════════════════════════════════════════════════════════════
   sellxpert-enhancements.css
   Book Demo form redesign + parallax section polish
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   PARALLAX SECTION — features section overflow fix
───────────────────────────────────────────────────────────────*/
.features-section {
  overflow: hidden; /* prevent parallax overflow */
}

#parallax-girl,
#parallax-devices {
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────
   BOOK DEMO FORM — GLASSMORPHISM CARD
───────────────────────────────────────────────────────────────*/

/* Override old card */
.bd-glass-card {
  background: linear-gradient(
    135deg,
    rgba(10, 25, 60, 0.82) 0%,
    rgba(5, 15, 45, 0.90) 100%
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(80, 130, 255, 0.22);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow:
    0 8px 40px rgba(0, 30, 100, 0.45),
    0 0 0 1px rgba(80, 130, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  position: relative;
  overflow: hidden;
}

/* Sheen highlight at top */
.bd-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% -20%,
    rgba(80, 140, 255, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ── Form Header ── */
.bd-form-header {
  text-align: center;
  margin-bottom: 26px;
}

.bd-header-badge {
  display: inline-block;
  background: linear-gradient(90deg, #3b6aff, #00c6ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.bd-form-header h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.bd-form-header p {
  color: rgba(180, 200, 255, 0.75);
  font-size: 0.85rem;
  margin: 0;
}

/* ── Form Layout ── */
.bd-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bd-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bd-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff!important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bd-req {
  color: #ff6b6b;
  margin-left: 2px;
}

/* ── Input Wrapper ── */
.bd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(80, 130, 255, 0.20);
  border-radius: 12px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  overflow: hidden;
}

.bd-input-wrap.bd-focused {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(80, 160, 255, 0.65);
  box-shadow:
    0 0 0 3px rgba(60, 120, 255, 0.15),
    0 2px 12px rgba(60, 100, 255, 0.12);
}

.bd-input-wrap.bd-filled {
  border-color: rgba(60, 200, 120, 0.40);
}

.bd-icon {
  padding: 0 10px 0 14px;
  font-size: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  pointer-events: none;
  line-height: 1;
}

.bd-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: 0.88rem;
  padding: 11px 14px 11px 4px;
  font-family: inherit;
  width: 100%;
  box-shadow: none !important;
}

.bd-input::placeholder {
  color: #fff !important;
}

.bd-input option {
  background: #0a1a40;
  color: #fff;
}

.bd-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Fake chevron for select */
.bd-input-wrap:has(.bd-select)::after {
  content: '▾';
  position: absolute;
  right: 14px;
  color: rgba(150, 180, 255, 0.6);
  font-size: 13px;
  pointer-events: none;
}

/* ── Radio Group ── */
.bd-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bd-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(80, 130, 255, 0.20);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  flex: 1;
  min-width: 80px;
  justify-content: center;
}

.bd-radio-label:hover {
  border-color: rgba(80, 160, 255, 0.50);
  background: rgba(80, 120, 255, 0.10);
}

.bd-radio-label input[type="radio"] {
  display: none;
}

.bd-radio-label input[type="radio"]:checked ~ .bd-radio-custom {
  background: linear-gradient(135deg, #3b6aff, #00c6ff);
  border-color: transparent;
}

.bd-radio-label input[type="radio"]:checked ~ .bd-radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

.bd-radio-label:has(input:checked) {
  border-color: rgba(80, 160, 255, 0.70);
  background: rgba(60, 100, 255, 0.15);
}

.bd-radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(80, 130, 255, 0.45);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bd-radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: all 0.2s ease;
}

.bd-radio-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff!important;
  letter-spacing: 0.02em;
}

/* ── T&C Checkbox ── */
.bd-tnc-group {
  margin-top: 2px;
}

.bd-tnc-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.bd-tnc-label input[type="checkbox"] {
  display: none;
}

.bd-tnc-label input:checked ~ .bd-tnc-box {
  background: linear-gradient(135deg, #3b6aff, #00c6ff);
  border-color: transparent;
}

.bd-tnc-label input:checked ~ .bd-tnc-box::after {
  opacity: 1;
}

.bd-tnc-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(80, 130, 255, 0.40);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.2s ease;
}

.bd-tnc-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.bd-tnc-text {
  font-size: 0.77rem;
  color: #fff !important;
  line-height: 1.5;
}

.bd-tnc-link {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.bd-tnc-link:hover {
  color: #93c5fd;
}

/* ── Submit Button ── */
.bd-submit-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #2553ff 0%, #0097db 50%, #00c6ff 100%) !important;
  background-size: 200% 100% !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 24px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #fff !important;
  cursor: pointer;
  transition:
    background-position 0.4s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.bd-submit-btn:hover {
  background-position: 100% 0 !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 24px rgba(40, 100, 255, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.bd-submit-btn:active {
  transform: translateY(0) !important;
}

/* Shimmer sweep on hover */
.bd-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.bd-submit-btn:hover::before {
  left: 125%;
}

.bd-submit-btn.bd-loading {
  opacity: 0.75;
  pointer-events: none;
}

.bd-submit-btn.bd-success {
  background: linear-gradient(90deg, #00b07d, #00d49a) !important;
}

.bd-btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.bd-submit-btn:hover .bd-btn-arrow {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — mobile form adjustments
───────────────────────────────────────────────────────────────*/
@media (max-width: 640px) {
  .bd-glass-card {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .bd-radio-group {
    gap: 8px;
  }

  .bd-radio-label {
    padding: 8px 12px;
    font-size: 0.80rem;
  }

  .bd-form-header h3 {
    font-size: 1.25rem;
  }

  /* disable parallax transform on mobile */
  #parallax-girl,
  #parallax-devices {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 400px) {
  .bd-radio-group {
    flex-direction: column;
  }
}
